package lab02.test06;

public class Circle {
    //属性
    double radii;
    public static final float PI=3.1415f;
    //行为
    public void area(){
        double area;
        area=PI*radii*radii;
        System.out.println("圆的面积为："+area);
    }
    public void perimeter(){
        double perimeter;
        perimeter=2*PI*radii;
        System.out.println("圆的周长为："+perimeter);
    }

}
